home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / VECTBAL2.ZIP / XCLIPPBM.H < prev    next >
C/C++ Source or Header  |  1993-09-13  |  2KB  |  57 lines

  1. /*-----------------------------------------------------------------------
  2. ; MODULE XCLIPPBM
  3. ;
  4. ; This module was written by Matthew MacKenzie
  5. ; matm@eng.umd.edu
  6. ;
  7. ; Clipped transfer of planar bitmaps from system memory to video memory.
  8. ;
  9. ; Compile with TASM.
  10. ; C near-callable.
  11. ;
  12. ; ****** XLIB - Mode X graphics library                ****************
  13. ; ******                                               ****************
  14. ; ****** Written By Themie Gouthas                     ****************
  15. ;
  16. ;  Terminology & notes:
  17. ;         VRAM ==   Video RAM
  18. ;         SRAM ==   System RAM
  19. ;         X coordinates are in pixels unless explicitly stated
  20. ;
  21. ;----------------------------------------------------------------------*/
  22.  
  23. #ifndef _XCLIPPBM_H_
  24. #define _XCLIPPBM_H_
  25.  
  26. /* unlike most global variables in Xlib, these are meant to be written to;
  27.    in fact they start off uninitialized -- all values are in pixels */
  28. extern int TopBound;
  29. extern int BottomBound;
  30. extern int LeftBound;
  31. extern int RightBound;
  32.  
  33. #ifdef __cplusplus
  34. extern "C" {
  35. #endif
  36.  
  37.  
  38. /* for both functions, a return value of 1 indicates that the entire
  39. bitmap was outside the bounding box, while a value of 0 means that
  40. something may have ended up on the screen */
  41.  
  42. /* copies a planar bitmap from SRAM to VRAM, with clipping */
  43.  
  44.  int x_clip_pbm (int X, int Y, int ScreenOffs, char far * Bitmap);
  45.  
  46. /* copies a planar bitmap from SRAM to VRAM, with clipping -- 0 bytes
  47.    in the bitmap are not copied */
  48.  
  49.  int x_clip_masked_pbm (int X, int Y, int ScreenOffs, char far * Bitmap);
  50.  
  51. #ifdef __cplusplus
  52. }
  53. #endif
  54.  
  55.  
  56. #endif
  57.